/**
 * Copyright © 2015-2020 <a href="http://www.jeeplus.org/">JeePlus</a> All rights reserved.
 */
package com.jeeplus.modules.cms.dm.entity;


import com.jeeplus.common.utils.excel.annotation.ExcelField;
import com.jeeplus.core.persistence.DataEntity;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import org.hibernate.validator.constraints.Length;

/**
 * 动态表单Entity
 *
 * @author Sawyer
 * @version 2020-11-21
 */
@Getter
@Setter
@ToString
public class CmsDynamic extends DataEntity<CmsDynamic> {

    private static final long serialVersionUID = 1L;

    @Length(min = 1, max = 64, message = "名称长度必须介于 1 和 64 之间")
    @ExcelField(title = "名称", align = 2, sort = 1)
    private String name;

    @Length(min = 1, max = 64, message = "英文名称长度必须介于 1 和 64 之间")
    @ExcelField(title = "英文名称", align = 2, sort = 2)
    private String enname;

    /**
     * 类型，1:单例,2:多例
     */
    @ExcelField(title = "类型", align = 2, sort = 3)
    private String type;

    @ExcelField(title = "数据模型", align = 2, sort = 4)
    private String dataModel;

    @ExcelField(title = "数据", align = 2, sort = 5)
    private String data;

    @ExcelField(title = "锁止标记", align = 2, sort = 6)
    private String lockFlag;

    /**
     * 站点
     */
    private String siteId;

    public CmsDynamic() {
        super();
        this.setIdType(IDTYPE_AUTO);
    }

    public CmsDynamic(String id) {
        super(id);
    }
}
